package com.ruoyi.manage.enterprise.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.ListUtil;
import com.ruoyi.manage.enterprise.domain.EcEnterpriseOperator;
import com.ruoyi.manage.enterprise.mapper.EcEnterpriseOperatorMapper;
import com.ruoyi.manage.enterprise.service.IEcEnterpriseOperatorService;
import org.springframework.stereotype.Service;


/**
 * 经办人Service业务层处理
 *
 * @author ruoyi
 * @date 2025-08-13
 */
@Service
public class EcEnterpriseOperatorServiceImpl extends ServiceImpl<EcEnterpriseOperatorMapper, EcEnterpriseOperator> implements IEcEnterpriseOperatorService{


    @Override
    public EcEnterpriseOperator queryGetById(Long id){
        EcEnterpriseOperator ecEnterpriseOperator = this.getById(id);
        return ecEnterpriseOperator;
    }

    /**
     * 新增经办人
     *
     * @param ecEnterpriseOperator 经办人
     * @return 结果
     */
    @Override
    public boolean addEcEnterpriseOperator(EcEnterpriseOperator ecEnterpriseOperator){
        boolean save =this.save(ecEnterpriseOperator);
        return save;
    }

    /**
     * 修改经办人
     *
     * @param ecEnterpriseOperator 经办人
     * @return 结果
     */
    @Override
    public boolean updateEcEnterpriseOperator(EcEnterpriseOperator ecEnterpriseOperator){
        return this.updateById(ecEnterpriseOperator);
    }

    /**
     * 批量删除经办人
     *
     * @param ids 需要删除的经办人主键
     * @return 结果
     */
    @Override
    public boolean deleteEcEnterpriseOperatorByIds(Long[] ids){
        return this.removeByIds(ListUtil.toList(ids));
    }

}
